package com.derbysoft.dswitch.adapter.ihg.common.repository.impl;

import com.derbysoft.dswitch.adapter.ihg.common.domain.Direction;

/**
 * Created by: jason
 * Date: 12-5-11
 */
public final class HotelTransactionLog {
    private Direction direction;
    private String message;

    private HotelTransactionLog(Direction direction, String message) {

        this.direction = direction;
        this.message = message;
    }

    public static HotelTransactionLog of(Direction direction, String message) {
        return new HotelTransactionLog(direction, message);
    }

    public Direction getDirection() {
        return direction;
    }

    public void setDirection(Direction direction) {
        this.direction = direction;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
